<?php

namespace common\widgets\ueditor;

use yii\web\AssetBundle;

class UEditorAsset extends AssetBundle {

    /**
     * @var array the options to be passed to [[AssetManager::publish()]] when the asset bundle
     * is being published. This property is used only when [[sourcePath]] is set.
     */
    public $publishOptions = [
        'forceCopy' => true // debug模式时强制拷贝
    ];
    
    public $js = [
        'ueditor.config.js',
        'ueditor.all.js',
    ];

    public function init() {
        $this->sourcePath = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'assets';
    }

}
